# 装饰器
def decorator(fn):
    def inner():
        print('正在运算中...')
        return fn()

    return inner


@decorator      # add = decorator(add)
def add():
    return 1 + 2

if __name__ == '__main__':
    print(add())
